2020-2021 Sunseeker Telemetry and Lighting System
pmap_ex3_singleFunctionToMultiplePins.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 
void watchdog_timer (void)
 

Variables

uint8_t port_mapping []
 

Function Documentation

◆ main()

void main ( void  )

Definition at line 85 of file pmap_ex3_singleFunctionToMultiplePins.c.

References __no_operation(), i, param, and port_mapping.

◆ watchdog_timer()

void watchdog_timer ( void  )

Variable Documentation

◆ port_mapping

uint8_t port_mapping[]
Initial value:
= {
PM_TB0CCR1A,
PM_TB0CCR2A,
PM_TB0CCR3A,
PM_TB0CCR4A,
PM_TB0CCR1A,
PM_TB0CCR2A,
PM_TB0CCR3A,
PM_TB0CCR4A
}

MSP430F55x Demo - Port Map single function to multiple pins; Multiple runtime configurations

Description: The port mapping of TIMERB0 is changed with each WDT interrupt. TIMER_B0 provides 4 PWMs with 4 different duty cycles. TIMER_B0 is sourced from ACLK. ACLK is REFO, 32kHz

MSP430F5528

/ |
RST
P4.0(TB0CCR1,2,3,4) --> 25,50,75,87.5%
P4.1(TB0CCR2,3,4,1) --> 50,75,87.5,25%
P4.2(TB0CCR3,4,1,2) --> 75,87.5,25,50%
P4.3(TB0CCR4,1,2,3) --> 87.5,25,50,75%
P4.4(TB0CCR1,2,3,4) --> 25,50,75,87.5%
P4.5(TB0CCR2,3,4,1) --> 50,75,87.5,25%
P4.6(TB0CCR3,4,1,2) --> 75,87.5,25,50%
P4.7(TB0CCR4,1,2,3) --> 87.5,25,50,75%

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • PMAP module
  • GPIO Port peripheral
  • UCS module
  • Timer module

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • WDT_A_VECTOR

Definition at line 73 of file pmap_ex3_singleFunctionToMultiplePins.c.

Referenced by main().